package avicit.im.lantop.userauthset.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import avicit.platform6.core.annotation.log.FieldRemark;
import avicit.platform6.core.annotation.log.LogField;
import avicit.platform6.core.domain.BeanBase;
import avicit.platform6.core.properties.PlatformConstant.LogType;

/**
 * <p>金航数码科技有限责任公司</p>
 * <p>作者：张坚</p>
 * <p>邮箱：18629436468@163.com</p>
 * <p>创建时间： 2014-12-10 上午11:57:07 </p>
 * <p>类说明：用户权限设置信息扩展（按条目）表对象
 * <p>修改记录： </p>
 */
@Entity
@Table(name = "LANTOP_USER_AUTH_EXTEND_DATA")
public class LantopUserAuthExtendData extends BeanBase {

	private static final long serialVersionUID = 1L;

	@LogField
	@FieldRemark(column = "ID", field = "id", name = "用户权限设置信息扩展id")
	private String id; // ID
	private String orgId; // 组织ID
	private String deptId; // 部门ID
	private String sysId; // 系统标识ID
	@LogField
	@FieldRemark(column = "TARGET_TYPE", field = "targetType", name = "权限设置目标类型")
	private String targetType; // 权限设置目标类型。1.角色(role)；2.用户(user)；3.部门(dept)；4.群组(group)；5.岗位(job)。
	@LogField
	@FieldRemark(column = "TARGET_ID", field = "targetId", name = "权限设置目标ID")
	private String targetId; // 权限设置目标ID
	@LogField
	@FieldRemark(column = "AUTH_SERVICE_ID", field = "authServiceId", name = "权限服务ID")
	private String authServiceId; // 权限服务ID
	@LogField
	@FieldRemark(column = "ARCHIVE_CLASS_ID", field = "archiveClassId", name = "节点ID")
	private String archiveClassId; // 节点ID
	@LogField
	@FieldRemark(column = "RCD_DATA_TYPE", field = "rcdDataType", name = "条目类型")
	private String rcdDataType; // 条目类型。0：电子文件；1：文件级；2：案卷级
	@LogField
	@FieldRemark(column = "ARCHIVE_TABLE_ID", field = "archiveTableId", name = "档案库表ID")
	private String archiveTableId; // 档案库表ID
	@LogField
	@FieldRemark(column = "RES_CODE", field = "resCode", name = "资源编码")
	private String resCode; // 资源编码
	@LogField
	@FieldRemark(column = "RES_NAME", field = "resName", name = "资源名称")
	private String resName; // 资源名称
	@LogField
	@FieldRemark(column = "ACTION_TYPE", field = "actionType", name = "操作类型")
	private String actionType; // 操作类型（英文逗号隔开）
	@LogField
	@FieldRemark(column = "OPERATE_AUTH", field = "operateAuth", name = "操作权限")
	private String operateAuth; // 操作权限（英文逗号隔开）
	@LogField
	@FieldRemark(column = "DATA_AUTH", field = "dataAuth", name = "数据权限")
	private String dataAuth; // 数据权限，存储根据页面配置翻译的where语句
	@LogField
	@FieldRemark(column = "DATA_AUTH_SHOW", field = "dataAuthShow", name = "数据权限条件显示")
	private String dataAuthShow; // 数据权限条件显示（按照字段中文名来显示where条件）
	@LogField
	@FieldRemark(column = "DATA_AUTH_CONFIG", field = "dataAuthConfig", name = "数据权限配置")
	private String dataAuthConfig; // 数据权限配置
	@LogField
	@FieldRemark(column = "START_DATE", field = "startDate", name = "开始日期")
	private java.util.Date startDate; // 开始日期
	@LogField
	@FieldRemark(column = "END_DATE", field = "endDate", name = "结束日期")
	private java.util.Date endDate; // 结束日期
	@LogField
	@FieldRemark(column = "WJH", field = "wjh", name = "文件号")
	private String wjh; // 文件号
	@LogField
	@FieldRemark(column = "TM", field = "tm", name = "题名")
	private String tm; // 题名
	private String secretLevel; // 密级
	private String sysApplicationId; // 多应用ID
	private String attribute01; // 预留字段1
	private String attribute02; // 预留字段2
	private String attribute03; // 预留字段3
	private String attribute04; // 预留字段4
	private String attribute05; // 预留字段5
	private String attribute06; // 预留字段6
	private String attribute07; // 预留字段7
	private String attribute08; // 预留字段8
	private java.util.Date attribute09; // 预留字段9
	private java.util.Date attribute10; // 预留字段10
	private java.math.BigDecimal attribute11; // 预留字段11
	private java.math.BigDecimal attribute12; // 预留字段12
	private java.math.BigDecimal attribute13; // 预留字段13
	private java.math.BigDecimal attribute14; // 预留字段14
	private java.math.BigDecimal attribute15; // 预留字段15

	@Id
	@Column(name = "ID", length = 50, nullable = false)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "ORG_ID", length = 50, nullable = false)
	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	@Column(name = "DEPT_ID", length = 50, nullable = false)
	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	@Column(name = "SYS_ID", length = 50)
	public String getSysId() {
		return sysId;
	}

	public void setSysId(String sysId) {
		this.sysId = sysId;
	}

	@Column(name = "TARGET_TYPE", length = 50, nullable = false)
	public String getTargetType() {
		return targetType;
	}

	public void setTargetType(String targetType) {
		this.targetType = targetType;
	}

	@Column(name = "TARGET_ID", length = 4000, nullable = false)
	public String getTargetId() {
		return targetId;
	}

	public void setTargetId(String targetId) {
		this.targetId = targetId;
	}

	@Column(name = "AUTH_SERVICE_ID", length = 50, nullable = false)
	public String getAuthServiceId() {
		return authServiceId;
	}

	public void setAuthServiceId(String authServiceId) {
		this.authServiceId = authServiceId;
	}

	@Column(name = "ARCHIVE_CLASS_ID", length = 50, nullable = false)
	public String getArchiveClassId() {
		return archiveClassId;
	}

	public void setArchiveClassId(String archiveClassId) {
		this.archiveClassId = archiveClassId;
	}

	@Column(name = "RCD_DATA_TYPE", length = 10, nullable = false)
	public String getRcdDataType() {
		return rcdDataType;
	}

	public void setRcdDataType(String rcdDataType) {
		this.rcdDataType = rcdDataType;
	}

	@Column(name = "ARCHIVE_TABLE_ID", length = 50)
	public String getArchiveTableId() {
		return archiveTableId;
	}

	public void setArchiveTableId(String archiveTableId) {
		this.archiveTableId = archiveTableId;
	}

	@Column(name = "RES_CODE", length = 200, nullable = false)
	public String getResCode() {
		return resCode;
	}

	public void setResCode(String resCode) {
		this.resCode = resCode;
	}

	@Column(name = "RES_NAME", length = 50)
	public String getResName() {
		return resName;
	}

	public void setResName(String resName) {
		this.resName = resName;
	}

	@Column(name = "ACTION_TYPE", length = 4000, nullable = false)
	public String getActionType() {
		return actionType;
	}

	public void setActionType(String actionType) {
		this.actionType = actionType;
	}

	@Column(name = "OPERATE_AUTH", length = 50, nullable = false)
	public String getOperateAuth() {
		return operateAuth;
	}

	public void setOperateAuth(String operateAuth) {
		this.operateAuth = operateAuth;
	}

	@Column(name = "DATA_AUTH", length = 4000)
	public String getDataAuth() {
		return dataAuth;
	}

	public void setDataAuth(String dataAuth) {
		this.dataAuth = dataAuth;
	}

	@Column(name = "DATA_AUTH_SHOW", length = 4000)
	public String getDataAuthShow() {
		return dataAuthShow;
	}

	public void setDataAuthShow(String dataAuthShow) {
		this.dataAuthShow = dataAuthShow;
	}

	@Column(name = "DATA_AUTH_CONFIG")
	public String getDataAuthConfig() {
		return dataAuthConfig;
	}

	public void setDataAuthConfig(String dataAuthConfig) {
		this.dataAuthConfig = dataAuthConfig;
	}

	@Column(name = "START_DATE")
	public java.util.Date getStartDate() {
		return startDate;
	}

	public void setStartDate(java.util.Date startDate) {
		this.startDate = startDate;
	}

	@Column(name = "END_DATE")
	public java.util.Date getEndDate() {
		return endDate;
	}

	public void setEndDate(java.util.Date endDate) {
		this.endDate = endDate;
	}

	@Column(name = "WJH", length = 100)
	public String getWjh() {
		return wjh;
	}

	public void setWjh(String wjh) {
		this.wjh = wjh;
	}

	@Column(name = "TM", length = 200)
	public String getTm() {
		return tm;
	}

	public void setTm(String tm) {
		this.tm = tm;
	}

	@Column(name = "SECRET_LEVEL", length = 50)
	public String getSecretLevel() {
		return secretLevel;
	}

	public void setSecretLevel(String secretLevel) {
		this.secretLevel = secretLevel;
	}

	@Column(name = "SYS_APPLICATION_ID", length = 50)
	public String getSysApplicationId() {
		return sysApplicationId;
	}

	public void setSysApplicationId(String sysApplicationId) {
		this.sysApplicationId = sysApplicationId;
	}

	@Column(name = "ATTRIBUTE_01", length = 255)
	public String getAttribute01() {
		return attribute01;
	}

	public void setAttribute01(String attribute01) {
		this.attribute01 = attribute01;
	}

	@Column(name = "ATTRIBUTE_02", length = 255)
	public String getAttribute02() {
		return attribute02;
	}

	public void setAttribute02(String attribute02) {
		this.attribute02 = attribute02;
	}

	@Column(name = "ATTRIBUTE_03", length = 255)
	public String getAttribute03() {
		return attribute03;
	}

	public void setAttribute03(String attribute03) {
		this.attribute03 = attribute03;
	}

	@Column(name = "ATTRIBUTE_04", length = 255)
	public String getAttribute04() {
		return attribute04;
	}

	public void setAttribute04(String attribute04) {
		this.attribute04 = attribute04;
	}

	@Column(name = "ATTRIBUTE_05", length = 255)
	public String getAttribute05() {
		return attribute05;
	}

	public void setAttribute05(String attribute05) {
		this.attribute05 = attribute05;
	}

	@Column(name = "ATTRIBUTE_06", length = 255)
	public String getAttribute06() {
		return attribute06;
	}

	public void setAttribute06(String attribute06) {
		this.attribute06 = attribute06;
	}

	@Column(name = "ATTRIBUTE_07", length = 255)
	public String getAttribute07() {
		return attribute07;
	}

	public void setAttribute07(String attribute07) {
		this.attribute07 = attribute07;
	}

	@Column(name = "ATTRIBUTE_08", length = 255)
	public String getAttribute08() {
		return attribute08;
	}

	public void setAttribute08(String attribute08) {
		this.attribute08 = attribute08;
	}

	@Column(name = "ATTRIBUTE_09")
	public java.util.Date getAttribute09() {
		return attribute09;
	}

	public void setAttribute09(java.util.Date attribute09) {
		this.attribute09 = attribute09;
	}

	@Column(name = "ATTRIBUTE_10")
	public java.util.Date getAttribute10() {
		return attribute10;
	}

	public void setAttribute10(java.util.Date attribute10) {
		this.attribute10 = attribute10;
	}

	@Column(name = "ATTRIBUTE_11")
	public java.math.BigDecimal getAttribute11() {
		return attribute11;
	}

	public void setAttribute11(java.math.BigDecimal attribute11) {
		this.attribute11 = attribute11;
	}

	@Column(name = "ATTRIBUTE_12")
	public java.math.BigDecimal getAttribute12() {
		return attribute12;
	}

	public void setAttribute12(java.math.BigDecimal attribute12) {
		this.attribute12 = attribute12;
	}

	@Column(name = "ATTRIBUTE_13")
	public java.math.BigDecimal getAttribute13() {
		return attribute13;
	}

	public void setAttribute13(java.math.BigDecimal attribute13) {
		this.attribute13 = attribute13;
	}

	@Column(name = "ATTRIBUTE_14")
	public java.math.BigDecimal getAttribute14() {
		return attribute14;
	}

	public void setAttribute14(java.math.BigDecimal attribute14) {
		this.attribute14 = attribute14;
	}

	@Column(name = "ATTRIBUTE_15")
	public java.math.BigDecimal getAttribute15() {
		return attribute15;
	}

	public void setAttribute15(java.math.BigDecimal attribute15) {
		this.attribute15 = attribute15;
	}

	/**
	 * TODO 获取日志表单名称
	 * @return 
	 * @throws
	 */
	@Transient
	public String getLogFormName() {
		if (super.logFormName == null || super.logFormName.equals("")) {
			return "用户权限设置模块";
		} else {
			return super.logFormName;
		}
	}

	/**
	 * TODO 获取日志标题
	 * @return 
	 * @throws
	 */
	@Transient
	public String getLogTitle() {
		if (super.logTitle == null || super.logTitle.equals("")) {
			return "用户权限设置模块";
		} else {
			return super.logTitle;
		}
	}

	/**
	 * TODO 获取日志类型
	 * @return 
	 * @throws
	 */
	@Transient
	public LogType getLogType() {
		if (super.logType == null || super.logType.equals("")) {
			return LogType.module_operate;
		} else {
			return super.logType;
		}
	}

}
